const {defineConfig} = require('@vue/cli-service')
module.exports = defineConfig({
  publicPath: '/',
  productionSourceMap: false,
  transpileDependencies: true,
  css: {
    loaderOptions: {
      scss: {
        prependData: '@import "~@/styles/prepend.scss";'
      }
    }
  },
  configureWebpack: {
    resolve: {
      fallback: {path: require.resolve('path-browserify')},
    }
  },
  chainWebpack(config) {
    config.plugin('html').tap(args => {
      args[0].title = process.env.VUE_APP_TITLE || '管理系统'
      return args
    })
  }
})
